#-------------------------------------------------
#
# Project created by QtCreator 2012-05-22T09:15:06
#
#-------------------------------------------------

QT       -= gui

TARGET = BaroHandler
TEMPLATE = lib

DEFINES += BAROHANDLER_LIBRARY

SOURCES += barohandler.cpp

HEADERS += barohandler.h

LIBS += -L$$OUT_PWD/../I2CHandler/ -lI2CHandler
INCLUDEPATH += $$PWD/../I2CHandler
DEPENDPATH += $$PWD/../I2CHandler

INCLUDEPATH += $$PWD/../../include/libftdi \
                $$PWD/../../include

linux-arm-gnueabi-g++{
    LIBS += -L$$PWD/../../libARM/qextserialport/ -lqextserialport-1.2 \
            -L$$PWD/../../libARM/libftdi/ -lftdi

}else{
    HARDWARE_PLATFORM = $$system(uname -m)
    message(Platform: $$HARDWARE_PLATFORM)
    contains( HARDWARE_PLATFORM, x86_64 ) {
        LIBS += -L$$PWD/../../lib/qextserialport/ -lqextserialport-1.2
    } else  {
        LIBS += -L$$PWD/../../lib32/qextserialport/ -lqextserialport-1.2
    }
}
